#define _CRT_SECURE_NO_WARNINGS

#include"vector.h"

using namespace std;

template<class Contain>
void Print(const Contain& con)
{
	for (auto e : con)
	{
		cout << e << " ";
	}
	cout << endl;
}
void test01()
{
	bear::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	//Print(v1);
	//bear::vector<int>::iterator it1 = v1.begin();
	//while (it1 != v1.end())
	//{
	//	cout << ++(*it1) << ' ';
	//	++it1;
	//}
	//bear::vector<int>::const_iterator it2 = v1.begin();
	//while (it2 != v1.end())
	//{
	//	cout << (*it2) << ' ';
	//	++it2;
	//}
	//v1.insert(v1.begin()+5, 100);
	//Print(v1);

	//v1.erase(v1.begin());
	//Print(v1);
	//v1.erase(v1.begin());
	//Print(v1);
	//v1.erase(v1.begin());
	//Print(v1);
	//v1.erase(v1.begin());
	//Print(v1);
	//v1.erase(v1.begin());
	//Print(v1);
	//v1.erase(v1.begin());
	//Print(v1);

	bear::vector<int> v2;
	v2 = v1;
	Print(v2);

	bear::vector<int> v3= v2;
	Print(v3);
}
int main()
{
	test01();
	return 0;
}